package com.ssyt.yt1.day9.callback;

import java.util.Random;

/**
 * 生成车
 * 
 * @author Administrator
 *
 */
public class Factory {

	private Car car;

	public Factory() {
		super();
	}

	public Factory(Car car) {
		super();
		this.car = car;
	}

	public void product() {
		int number = new Random().nextInt();
		car.print(number);
	}
}
